// SBpCollection_BPA.cpp: implementation of the CSBpCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Swi/SBpCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSBpCollection_BPA::CSBpCollection_BPA()
{

}

CSBpCollection_BPA::~CSBpCollection_BPA()
{

}

CSBp_BPA* CSBpCollection_BPA::GetFirstSBp()
{
	return (CSBp_BPA*)CCardCollection_BPA::GetFirstCard();
}

CSBp_BPA* CSBpCollection_BPA::Traverse(CSBp_BPA *pSBp, int nDirection)
{
	return (CSBp_BPA*)CCardCollection_BPA::Traverse(pSBp,nDirection);
}

CSBp_BPA* CSBpCollection_BPA::GetSBp(char *strBusName, double dkV, char nID)
{
	CSBp_BPA tempSBp;
	strcpy(tempSBp.m_strName,strBusName);
	tempSBp.m_dkV = dkV;
	tempSBp.m_chID = nID;
	return (CSBp_BPA*)CCardCollection_BPA::GetCard(&tempSBp);
}